package com.hqyj.springBoot.modules.account.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class AccountController {

    /**
     * 127.0.0.1/login ---
     */

    @GetMapping("/login")
    public String loginPage(ModelMap modelMap){
        modelMap.addAttribute("template","account/login");
        return "index3";
    }

    /**
     * 127.0.0.1/register ---
     */

    @GetMapping("/register")
    public String registerPage(ModelMap modelMap){
        modelMap.addAttribute("template","account/register");
        return "index3";
    }


    /**
     * 127.0.0.1/account/users ---
     */

    @GetMapping("/account/users")
    public String users(ModelMap modelMap){
        return "index";
    }

}
